package interpreter;

import java.util.HashMap;

public class AddExpression extends SymbolExpression {
    public AddExpression(Expression left, Expression right) {
        super(left, right);
    }
    @Override
    public int interpreter(HashMap<String, Integer> var) {
        int left = super.left.interpreter(var);
        int right = super.right.interpreter(var);
        return left + right;
    }
}
